package com.bz.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController//表明该类是一个控制类，可以在类中定义springmvc的语法
@RequestMapping("/hello")//1.可以防止访问地址冲突，2.分类
public class HelloController {

    @GetMapping("/hello")
    public String  hello(){
        System.out.println("hello springboot!!!");
        return "hello springboot";
    }
}
